
class FFServerInfo extends ServerInfo;

var color WhiteColor, RedColor;

var localized string ServerInfoText, MOTD, TXT1, TXT2,  TXT3, TXT4, TXT5,  TXT6, TXT7, TXT8,
TXT9, TXT10, TXT11, TXT12, TXT13, TXT14,  TXT15, TXT16, TXT17, TXT18, TXT19, TXT20, TXT21;

var FontInfo MyFonts;

function Destroyed()
{
   Super.Destroyed();
   if ( MyFonts != None )
      MyFonts.Destroy();
}

function PostBeginPlay()
{
   Super.PostBeginPlay();
   MyFonts = FontInfo(spawn(Class<Actor>(DynamicLoadObject(class'ChallengeHUD'.default.FontInfoClass, class'Class'))));
}

function RenderInfo( canvas C )
{
   local GameReplicationInfo GRI;
   GRI = PlayerPawn(Owner).GameReplicationInfo;
   DrawMyMOTD(C, GRI);
}

function DrawMyMOTD( canvas C, GameReplicationInfo GRI )
{
   local float XL, YL, XL2, YL2;

   C.DrawColor.R = 9;
   C.DrawColor.G = 151;
   C.DrawColor.B = 247;

   C.Font = MyFonts.GetBigFont( C.ClipX );
   C.StrLen( "TEMP", XL, YL );

   C.bCenter = true;
   C.SetPos( 0, C.ClipY / 8 );
   C.DrawText( MOTD, True);

   C.DrawColor = RedColor;
   C.Font = MyFonts.GetSmallFont( C.ClipX );
   C.StrLen( "TEMP", XL2, YL2 );
   C.StrLen(TXT1, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) );
   C.DrawText(TXT1, True );

   C.DrawColor = WhiteColor;

   C.StrLen(TXT2, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1) );
   C.DrawText(TXT2, True );

   C.StrLen(TXT3, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*2 );
   C.DrawText(TXT3, True );

   C.StrLen(TXT4, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*3 );
   C.DrawText(TXT4, True );

   C.StrLen(TXT5, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*4 );
   C.DrawText(TXT5, True );

   C.StrLen(TXT6, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*5 );
   C.DrawText(TXT6, True );

   C.StrLen(TXT7, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*6 );
   C.DrawText(TXT7, True );

   C.StrLen(TXT8, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*7 );
   C.DrawText(TXT8, True );

   C.DrawColor = RedColor;

   C.StrLen(TXT9, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*8 );
   C.DrawText(TXT9, True );

   C.DrawColor = WhiteColor;

   C.StrLen(TXT10, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*9 );
   C.DrawText(TXT10, True );

   C.StrLen(TXT11, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*10 );
   C.DrawText(TXT11, True );

   C.StrLen(TXT12, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*11 );
   C.DrawText(TXT12, True );

   C.StrLen(TXT13, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*12 );
   C.DrawText(TXT13, True );

   C.StrLen(TXT14, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*13 );
   C.DrawText(TXT14, True );

   C.StrLen(TXT15, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*14 );
   C.DrawText(TXT15, True );

   C.DrawColor = RedColor;

   C.StrLen(TXT16, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*15 );
   C.DrawText(TXT16, True );

   C.DrawColor = WhiteColor;

   C.StrLen(TXT17, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*16 );
   C.DrawText(TXT17, True );

   C.StrLen(TXT18, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*17 );
   C.DrawText(TXT18, True );

   C.StrLen(TXT19, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*18 );
   C.DrawText(TXT19, True );

   C.StrLen(TXT20, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*19 );
   C.DrawText(TXT20, True );

   C.DrawColor = RedColor;

   C.DrawColor.R = 9;
   C.DrawColor.G = 151;
   C.DrawColor.B = 247;

   C.Font = MyFonts.GetBigFont( C.ClipX );
   C.StrLen(TXT21, XL2, YL2 );
   C.SetPos( 0, (C.ClipY / 8) + (YL+1) + (YL2+1)*20 );
   C.DrawText(TXT21, True );
}

defaultproperties
{
   ServerInfoText="Server Info"
   MOTD="Welcome to FoodFight Beta!"
   RedColor=(R=255,G=0,B=0,A=0),
   WhiteColor=(R=255,G=255,B=255,A=0),
   TXT1="First a word from our sponsers:"
   TXT2="Thank you to Ferali for his untiring help in multiple spots. Top billing"
   TXT3="is well deserved for you. Nice job!"
   TXT4="Thanks to papercoffee too for never giving up on this. He is to be richly"
   TXT5="commended for keeping this mod alive. You are playing now because he just"
   TXT6="does not know how to give up. Big thanks to GenMoKai and rohitggarg for"
   TXT7="their primary code work and beautiful models."
   TXT8=""
   TXT9="Some things to remember:"
   TXT10="This is an early beta version but we need player feedback as well as some"
   TXT11="online error logs to look at. PLEASE take the time to go to UT99.org and"
   TXT12="outline things you see that could be improved. We are aware of many of"
   TXT13="the existing issues but your opinions are invaluable and indeed they"
   TXT14="are critical to make this mod the best it can be."
   TXT15=""
   TXT16="What are these flat panel cartoons of weapons?"
   TXT17="Not all the weapons are ready for play. There are three more default"
   TXT18="guns to code and they need more time in the oven ;) We want you to know"
   TXT19="they are coming though so that's the reason for the sprite panels."
   TXT20=""
   TXT21="Now, get yourself back into the kitchen and fix me up some frags!!"
}
